<?php 

require_once ('includes/config.inc.php'); 

// Start output buffering:
ob_start();

// Initialize a session:
@session_start();


// Check for a $page_title value:
if (!isset($page_title)) {
	$page_title = 'Create New Campaign';
}

// If no first_name session variable exists, redirect the user:
if (!isset($_SESSION['first_name'])) {
	
	$url = BASE_URL . 'index.php'; // Define the URL.
	ob_end_clean(); // Delete the buffer.
	header("Location: $url");
	exit(); // Quit the script.
	
}

include ('includes/header.html');

if (isset($_POST['template'] ) ) {
			
		$_SESSION['template'] = $_POST['template'];
		
		header("Location: form3.php");		
	
		
}
		  


?>
<h2>Select a Template!</h2>


<form id="form2" name="form2" method="post" action="form2.php">
  <table width="100%" border="1" cellspacing="10" cellpadding="6">
    <tr>
      <td><img src="img/canucks.png" /></td>
      <td><img src="img/canucks.png" /></td>
    </tr>
    <tr>
      <td><input type="radio" name="template" id="template1" value="1" /></td>
      <td><input type="radio" name="template" id="template2" value="2" /></td>
    </tr>
    <tr>
      <td><img src="img/canucks.png" /></td>
      <td><img src="img/canucks.png"" /></td>
    </tr>
    <tr>
      <td><input type="radio" name="template" id="template3" value="3" /></td>
      <td><input type="radio" name="template" id="template4" value="4" /></td>
    </tr>
  </table>
  <input type="submit" value="Continue">
</form>



<?php // Include the HTML footer file:
include ('includes/footer.html');
ob_end_flush();
?>
